package com.zuoye2.domain;

public class Coder {
    //属性
    //姓名
    private String name;
    //工号
    private String id;
    //工资
    private int salary;

    //构造参数
    //无参
    public Coder(){}
    //有参（满参）
    public Coder(String name,String id,int salary){
        this.name=name;
        this.id=id;
        this.salary=salary;
    }
    //set/get
    public String getName() {
        return name;
    }
    public void setName(String name) {
        this.name = name;
    }
    public String getId() {
        return id;
    }
    public void setId(String id) {
        this.id = id;
    }
    public int getSalary() {
        return salary;
    }
    public void setSalary(int salary) {
        this.salary = salary;
    }


    //成员方法
    public void work(){
        System.out.println("工号为"+id+"基本工资为"+salary+"的"+name+"正在努力的写着代码......");
    }
}
